package com.example.controller;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloController {
    @ResponseBody
    @RequestMapping("/Get")
    public String hello() {
        return "Hello World!";
    }


    @RequestMapping("/zeroException")
    public int zeroException(){
        return 100/0;
    }


}